package com.lcp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("diet_records")
public class DietRecord {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long userId;
    private String mealType;  // 早餐、午餐、晚餐、加餐
    private String foodName;
    private String foodType;  // 主食、肉类、蔬菜、水果等
    private Double quantity;  // 数量
    private String unit;      // 单位（克、份等）
    private Integer calories; // 卡路里
    private String nutrition; // 营养成分
    private String cookingMethod; // 烹饪方式
    private String notes;     // 备注
    private LocalDateTime mealTime;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
} 